﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ImageService;
using System.Configuration;

namespace ImageService.Test
{
    public partial class fmMain : Form
    {
        public fmMain()
        {
            InitializeComponent();
        }

        private void fmMain_Load(object sender, EventArgs e)
        {
            int port = 1987;

            Int32.TryParse(Properties.Settings.Default.port, out port);
            string path = Properties.Settings.Default.path ?? "";

            CarImageServer cis = new CarImageServer(port, path);
            if (cis.Start())
            {
                this.lbStatus.Text = "图片服务器运行中...";
            }
            else {
                this.lbStatus.Text = "图片服务器启动失败";
            }
        }
    }
}
